package edu.sctu.practice.class02.luohui.assign02;

/**
 * Created by asus on 2015/10/8.
 */
public class Circle {
    private double radius;
    public double area;
    public static int numOfObjects = 0;

    public Circle(double radius) {
        this.radius = radius;
        numOfObjects++;
    }

    public double seekArea() {
        System.out.println("当圆的半径为" + radius);
        area = 3.14 * radius * radius;
        return area;
    }

    public static int statistics() {

        return numOfObjects;
    }
}
